package com.tedu.egvehicle.mapper;

import com.tedu.egvehicle.pojo.dto.VehicleListQuery;
import com.tedu.egvehicle.pojo.entity.Vehicle;
import com.tedu.egvehicle.pojo.vo.VehicleListVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface VehicleMapper {
    int insert(Vehicle vehicle);

    List<VehicleListVO> select(
            @Param("brand") String brand,
            @Param("license") String license,
            @Param("userId") Long id);

    int delete(@Param( "id") Long id,
               @Param(("userId")) Long userId);
}
